package net.goutalk.glcs.module.erpModel.caseErpDevice.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
public class AddCaseErpDeviceInfoDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备类型   （压铸设备1）(机加设备2)")
    @ExcelProperty("设备类型")
    private Long typeId;

    @ApiModelProperty("设备编号")
    @ExcelProperty("设备编号")
    @JsonProperty("number")
    private String code;

    @ApiModelProperty("设备名称")
    @ExcelProperty("设备名称")
    private String name;

    @ApiModelProperty("规格型号")
    @ExcelProperty("规格型号")
    private String model;

    @ApiModelProperty("供应商名称")
    @ExcelProperty("供应商名称")
    private Long supplierId;

    @ApiModelProperty("购买日期")
    @ExcelProperty("购买日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Timestamp buyDate;

    @ApiModelProperty("维保日期")
    @ExcelProperty("维保日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Timestamp  maintainDate;

    @ApiModelProperty("负责人")
    @ExcelProperty("负责人")
    private String principalIds;

    @ApiModelProperty("报废日期")
    @ExcelProperty("报废日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Timestamp  scrapDate;

    @ApiModelProperty("设备位置")
    @ExcelProperty("设备位置")
    private String address;

}
